package com.qyl.deguru.controller.customer;

import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import com.qyl.deguru.dto.Shop;
import com.qyl.deguru.service.ShopService;
import com.qyl.deguru.service.impl.ShopServiceImple;

/**
 * 支付
 * */
@Controller
@RequestMapping("/customer/confirm")
public class ConfirmController {
	ShopService shopService = new ShopServiceImple();
//	AddressService addressService=new AddressServiceImple();
	@RequestMapping("/toConfirmOrder")
	public String toConfirmOrder(int cid, ModelMap modelMap,HttpSession session) {
		Shop shops = shopService.getShopById(cid);
		modelMap.addAttribute("shops", shops);
		//获取买家信息
//		Address address=addressService.getAddress
		return "confirm_order";
	}
}
